package com.emellend.api11.nfc;

import java.nio.charset.Charset;
import java.util.Locale;

import android.app.Activity;
import android.nfc.NdefRecord;
import android.os.Bundle;

public class ForegroundNdefPush extends Activity {
	
	public static NdefRecord newTextRecord(String text, Locale locale, boolean encodeInUtf8){
		byte[] langBytes = locale.getLanguage().getBytes(Charset.forName("US-ASCII"));
		Charset utfEncoding=encodeInUtf8?Charset.forName("UTF-8"):Charset.forName("UTF-16");
		byte[] textBytes = text.getBytes(utfEncoding);
		
		int utfBit=encodeInUtf8?0:(1<<7);
		
		return null;
	}
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
	}
}
